﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Clipping.Infrastructure.Models;

namespace ClippingEditor
{
    public class FieldViewModel : GalaSoft.MvvmLight.ViewModelBase
    {

        public FieldViewModel(Field field,string value)
        {
            this.Field = field;
            this.Value = value;
        }


        public Field Field
        {
            get;
            set;
        }


        private string _value;

        public string Value
        {
            get { return _value; }
            set 
            {
                if (value == this._value)
                    return;
                _value = value;
                RaisePropertyChanged(() => this.Value);
            }
        }

    }
}
